<!--{include html_header}-->
<!--xxx START-->
<div class="By-public-content clearfix" style="margin-top:20px;">
	<div class="help-about-pannel float_l clearfix">
        <!--{if $login_user}-->
		<div class="help-about-tab">
			${current_account('/account/settings.php')}
		</div>
        <!--{/if}-->
		<div class="help-about-content clearfix">
			<div id="content" class="coupons-box clear">
				<div class="box clearfix">
					<div class="box-top"></div>
					<div class="box-content">
						<div class="head">
							<h2>账户设置</h2>
							<ul class="filter">
								<li class="current"><a href="/account/settings.php">帐户设置</a></li>
								<!--<li><a href="/credit/index.php">帐户余额</a></li>
								<li><a href="/account/myask.php">我的问答</a></li>
								<li><a href="/account/setbinds.php">手机绑定</a></li>-->
                                <li><a href="/subscribe.php">邮件订阅</a></li>
								<li><a href="/account/setaddress.php">收货地址</a></li>
							</ul>
						</div>
						<div class="sect">
							<form id="settings-form" method="post" action="/account/settings.php" enctype="multipart/form-data" class="validator">
								<div class="wholetip clearfix"><h3>1、基本信息</h3></div>
								<div class="field email">
									<label>Email</label>
									<input type="text" size="30" name="email" id="settings-email-address" class="f-input {$readonly['email']}" {$readonly['email']} value="{$login_user['email']}" />
								</div>
								<div class="field" style="display:none">
									<label>头像</label>
									<!--{if $login_user['avatar']}-->
									<img src="${user_image($login_user['avatar'])}" style="float:left;margin-top:-10px;margin-right:10px;"/>
									<!--{/if}-->
									<input type="file" size="30" name="upload_image" id="settings-avatar" class="f-input" />
									<span class="hint">请上传 512KB 以内的个人肖像图片</span>
								</div>
								<div class="field username">
									<label>用户名</label>
									<input type="text" size="30" name="username" id="settings-username" class="f-input {$readonly['username']}" value="{$login_user['username']}" require="true" datatype="limit" min="2" max="16" maxLength="16" {$readonly['username']} />
								</div>
								<div class="field password">
									<label>当前密码</label>
									<input type="password" size="30" name="oldpassword" id="settings-password-old" class="f-input" require="true" datatype="require" />
									<span class="hint">修改帐户设置请输入当前密码</span>
								</div>
								<div class="field password">
									<label>更改密码</label>
									<input type="password" size="30" name="password" id="settings-password" class="f-input" />
									<span class="hint">如果您不想修改密码，请保持空白</span>
								</div>
								<div class="field password">
									<label>确认密码</label>
									<input type="password" size="30" name="password2" id="settings-password-confirm" class="f-input" />
								</div>
								<!--
								<div class="field password" >
									<label>性别</label>
									<select name="gender" class="f-city">${Utility::Option($option_gender, $login_user['gender'])}</select>
								</div>
								<div class="wholetip clearfix"><h3>2、联系信息</h3></div>
								<div class="field mobile">
									<label>手机号码</label>
									<input type="text" size="30" name="mobile" id="settings-mobile" class="number" value="{$login_user['mobile']}" require="${option_yes('needmobile')?'true':'require'}" datatype="mobile"   msg="手机格式不对" ${$login_user['mobilecode']=='yes'?'readonly':''}/><span class="inputtip">手机号码是我们联系您最重要的方式，请准确填写</span>
								</div>
								<div class="field password">
									<label>QQ</label>
									<input type="text" size="30" name="qq" id="settings-qq" class="number" value="{$login_user['qq']}" />
								</div>
								<div class="field city" style="display:none">
									<label>所在城市</label>
									<select name="city_id" class="f-city">${Utility::Option(Utility::OptionArray($allcities, 'id', 'name'), $login_user['city_id'])}<option value='0'>其他</option></select>
								</div>
								<div class="wholetip clearfix"><h3>3、派送信息</h3></div>
								<div class="field username">
									<label>真实姓名</label>
									<input type="text" size="30" name="realname" id="settings-realname" class="f-input" value="{$login_user['realname']}" />
									<span class="hint">真实姓名请与有效证件姓名保持一致，便于收取物品</span>
								</div>
								<div class="field username">
									<label>收件地址</label>
									<input type="text" size="30" name="address" id="settings-address" class="f-input" value="{$login_user['address']}" />
									<span class="hint">为了能及时收到物品，请按照格式填写：_省_市_县（区）_</span>
								</div>
														<div class="field">
									<label>邮政编码</label>
									<input type="text" maxLength=6 size="10" name="zipcode" id="settings-zipcode" class="f-input number" value="{$login_user['zipcode']}" />
								</div>-->
								<div class="clear"></div>
								<div class="act">
									<input type="submit" value="更改" name="commit" id="settings-submit" class="formbutton"/>
								</div>
							</form>
						</div>
					</div>
					<div class="box-bottom"></div>
				</div>
			</div>
			<!--<div id="sidebar" class="rail">
				<!--{include block_side_credit}-->
				<!--{include block_side_credittip}-->
			<!--</div>-->
		</div>
	
	
	</div>
	
	<div class="slg-pic-2 float_r"><a href="/subscribe.php"><img src="/static/img/slg-pic-2.png" /></a></div>
</div>
<!--xxx END-->


<!--xxx START-->
<div class="By-public-content clearfix">
</div>
<!--xxx END-->


<!--{include html_footer}-->

